
import java.io.IOException;
import java.io.InputStream;
import sun.tools.jar.CommandLine;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author User
 */
public class run_bat {
 
    void LOOL(String path) throws IOException
   {
        Runtime runtime = Runtime.getRuntime();
try {
    Process p1 = runtime.exec(path);
    InputStream is = p1.getInputStream();
    int i = 0;
    while( (i = is.read() ) != -1) {
        System.out.print((char)i);
    }
} catch(IOException ioException) {
    System.out.println(ioException.getMessage() );
}

 } 
       
   
    
    
 public static void main(String[] args) throws IOException {
     

 
 }
}
